home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4321 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: nntphub.cb.att.com!not-for-mail
  2. From: sgh@cbgbcs.cb.att.com (Scott G. Hall)
  3. Newsgroups: crl.general,comp.sys.sun.misc,comp.unix.sys5.misc,comp.lang.c,sci.math
  4. Subject: Re: Problem with C for the mathematical programm
  5. Date: 3 Feb 1996 15:10:06 GMT
  6. Organization: AT&T Bell Labs, GBCS
  7. Message-ID: <4evtse$o4u@nntpa.cb.att.com>
  8. References: <4epq2e$h4b@crl2.crl.com> <4erfj5$f5c@canb.cin.gov.au> <1FEB199621595021@erich.triumf.ca> <4eskqb$h8b@nntp.crl.com>
  9. NNTP-Posting-Host: cbgbcs.cb.att.com
  10.  
  11. Eric Penn <stupid@crl.com> wrote:
  12. >P.Bennett (bennett@erich.triumf.ca) wrote:
  13. > >Borland and Microsoft very nicely put the math functions in the main library,
  14. > >so you don't have to worry about this nonsense - MS-DOS _does_ have some
  15. > >advantages  :-)
  16. >
  17. >Wow!  Sure is nice to know that you can get bloated object modules with all
  18. >sorts of unneeded math calls included - by default!  Sure hope they have a
  19. >really spiffy linker and global optimizer to weed out all that extra code....
  20.  
  21. I see you have done little or no DOS-based development.  For about 15 years
  22. now, most DOS-based linkers only include objects from the library that are
  23. referenced in the program.  Second, most of the latest crop of linkers for
  24. windows reference dynamic libraries where the object code is not included
  25. in the executable at all.  You don't get bloated programs, but rather trim
  26. ones.
  27.  
  28. Also please note, several of the latest UNIXes are also using the same
  29. idea in the linker -- include only those statically linked objects that
  30. are referenced by the code.  These same linkers have configuration files
  31. that can set the list of libraries to search by default, so now you can
  32. automatically have the math library, curses & termlibs, and so on
  33. included without specifying them on the command line, and since only
  34. objects referenced are included, not worry about bloated programs.
  35.  
  36.  
  37.  
  38.  
  39.  
  40. -- 
  41. - sgh      What are you doing, reading the words at the bottom?!?   Key Grip!?!
  42.       What is a key grip anyway?!  I don't give credit to anybody -- it's
  43. Scott G. Hall     (Scott.Hall@att.com)            all my show!!  - Duckman
  44. AT&T Bell Laboratories - GCBS, Columbus, OH, USA
  45.